package com.dm.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.dm.query.QuerySysUser;
import com.dm.entity.SysUserDO;
import com.dm.exception.ServiceException;

@Mapper
public interface SysUserDAO {

	public SysUserDO selectSysUserByUserId(Long userId);

	public List< SysUserDO > selectSysUserList(QuerySysUser querySysUser);

	public Integer countSysUserList(QuerySysUser querySysUser);

	public int insertSysUser(SysUserDO sysUserDO);

	public int updateSysUserByUserId(SysUserDO sysUserDO);
	
	public int deleteSysUserByUserId(SysUserDO sysUserDO)throws ServiceException;
	
	public List<String> selectDistinctList(QuerySysUser querySysUser);

	public int countCompanyUser(@Param("companyCode")String companyCode, @Param("type")String type);

	public void deleteSysUserCompanyInfo(String groupCode);

	public List< SysUserDO > selectSysUserListByCode(@Param("companyCode")String companyCode, @Param("groupCode")String groupCode);

}

